package com.asohofrucol.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import com.asohofrucol.model.User;

public interface UserDao extends JpaRepository<User, Long> {
	@Query("select u from User u where u.username=:userName")
	public User findByUserName(@Param("userName") String userName);
}
